package org.codeart.springdemo.listener;

import org.codeart.springdemo.event.RequestEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class RequestListener implements ApplicationListener<RequestEvent> {

    @Override
    public void onApplicationEvent(RequestEvent event) {
        System.out.println("收到了 RequestEvent 事件，执行本方法.");
    }
}
